﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderWork.aspx.cs" Inherits="provider_OrderWork" %>
<%@ Register Assembly="obout_Grid_NET" Namespace="Obout.Grid" TagPrefix="cc1" %>
<%@ Register TagPrefix="cc1" Namespace="Obout.Interface" Assembly="obout_Interface" %>
<%@ Register TagPrefix="oem" Namespace="OboutInc.EasyMenu_Pro" Assembly="obout_EasyMenu_Pro" %>
<%@ Register TagPrefix="obout" Namespace="OboutInc.Flyout2" Assembly="obout_Flyout2_NET"%>
<%@ Register src="../header.ascx" tagname="header" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Órdenes de trabajo</title> 

    <link href="../style/Style.css" rel="stylesheet" type="text/css" />
    <link href="./css/axesat.css" rel="stylesheet" type="text/css" />
    <link href="../js/shadowbox/shadowbox.css" rel="stylesheet" type="text/css" />        
    <script src="../js/shadowbox/shadowbox.js" type="text/javascript"></script>        
    <script src="../js/Axesat.js" type="text/javascript"></script>    
    
	<script type="text/javascript">
	    function asignarColumnaSeleccionada(nombreColumna) {
	        document.getElementById('hdnColumnaSeleccionada').value = nombreColumna;
	    }
	</script>					   

 
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:HiddenField ID="hdnColumnaSeleccionada" runat="server" />
        <asp:HiddenField ID="hdnIdProveedor" runat="server" />
        <table cellpadding="0" cellspacing="0">
        <tr>
            <td>            
                <uc1:header ID="header1" runat="server" />
            </td>
        </tr>
        
        <tr><td>
            <div class="menusupe">
                <ul>
                    <li class="overmenu"><a href="#">Orden de Trabajo</a></li>
                </ul>
            </div> 

            </td>
        </tr>
        <tr>
        <td>&nbsp;</td>        
        </tr>                            
        <tr>
        <td>        
        
            <cc1:Grid ID="grvOT" runat="server" FolderStyle="styles/black_glass" AutoGenerateColumns="False" 
                Serialize="true"
                EnableTypeValidation="false" AllowAddingRecords="false" 
                AllowFiltering="false" AllowSorting="false"
                PageSize="8" AllowPageSizeSelection="false"
                CallbackMode="true" GenerateRecordIds="true" 
                AllowMultiRecordSelection="true" Width="950px" 
                onrowdatabound="grvOT_RowDataBound" >                    
                <Columns>
                <cc1:Column ID="Column4" DataField="CODIGO_ORDEN" runat="server" HeaderAlign="left" Width="15%">
                    <TemplateSettings HeaderTemplateID="TemplateHeaderCodigoOrden" />
                </cc1:Column>
                <cc1:Column ID="Column5" DataField="TIPO_OT" runat="server" HeaderAlign="left" Wrap="true" Width="14%">                        
                    <TemplateSettings HeaderTemplateID="TemplateHeaderTipoOT" />
                </cc1:Column>                                        
                <cc1:Column ID="Column2" DataField="ESTADO" HeaderText="" runat="server" HeaderAlign="left" Wrap="true" Width="13%" >
                    <TemplateSettings HeaderTemplateID="TemplateHeaderEstado" />
                </cc1:Column>
                <cc1:Column ID="Column6" DataField="NOMBRE_SERVICIO" HeaderText="" runat="server" HeaderAlign="left" Width="14%">                    
                    <TemplateSettings HeaderTemplateID="TemplateHeaderNombreServicio" />
                </cc1:Column>
                <cc1:Column ID="Column3" DataField="CPA" HeaderText="" runat="server" HeaderAlign="left" Wrap="true" Width="14%">
                    <TemplateSettings HeaderTemplateID="TemplateHeaderCPA" />
                </cc1:Column>
                <cc1:Column ID="Column1" DataField="FECHA" HeaderText="" runat="server" Wrap="true" HeaderAlign="left" Width="14%">
                    <TemplateSettings HeaderTemplateID="TemplateHeaderFecha" />
                </cc1:Column>
                <cc1:Column ID="Column7" DataField="ID_OT_SDFC" HeaderText="" runat="server" HeaderAlign="left" Align="center" Width="8%">
                    <TemplateSettings HeaderTemplateID="TemplateHeaderVerOT" TemplateId="TemplateItemVerOT" />
                </cc1:Column>
                <cc1:Column ID="Column8" DataField="" HeaderText="" runat="server" HeaderAlign="left" Align="center" Width="8%">
                    <TemplateSettings HeaderTemplateID="TemplateHeaderCargarActa" TemplateId="TemplateItemCargarActa" />
                </cc1:Column>
                                    
                </Columns>                                              

                <TemplateSettings RowEditTemplateId="tplRowEdit" />
                <LocalizationSettings AddLink="Nuevo" CancelAllLink="Cancelar todo" 
                    CancelLink="Cancelar" DeleteLink="Eliminar" EditLink="Editar" 
                    Filter_ApplyLink="Aplicar Filtro" Filter_HideLink="Ocultar filtro" 
                    Filter_RemoveLink="Quitar filtro" Filter_ShowLink="Mostrar filtro" 
                    FilterCriteria_Contains="Contiene" FilterCriteria_DoesNotContain="No contiene" 
                    FilterCriteria_EndsWith="Termina con" FilterCriteria_EqualTo="Igual a" 
                    FilterCriteria_GreaterThan="Mayor a" 
                    FilterCriteria_GreaterThanOrEqualTo="Mayor o igual a" 
                    FilterCriteria_IsEmpty="Vacio" FilterCriteria_IsNotEmpty="No vacio" 
                    FilterCriteria_IsNotNull="No nulo" FilterCriteria_IsNull="Nulo" 
                    FilterCriteria_NoFilter="Sin filtro" FilterCriteria_NotEqualTo="Diferente a" 
                    FilterCriteria_SmallerThan="Menor que" 
                    FilterCriteria_SmallerThanOrEqualTo="Menor o igual a" 
                    FilterCriteria_StartsWith="Comienza con" 
                    Grouping_GroupInformationNextPage=" (Mostrando XXXXX de YYYYY registros - This group is continued on the next page)" 
                    Grouping_GroupInformationPreviousNextPage=" (Mostrando XXXXX de YYYYY registros - This group was started on the previous page and continues on the next page)" 
                    Grouping_GroupInformationPreviousPage=" (Mostrando XXXXX de YYYYY registros - This group was started on the previous page)" 
                    LoadingText="Cargando..." ModifyLink="Modificar" 
                    NoRecordsText="No se encontraron registros" 
                    Paging_ManualPagingLink="Ir a la pagina »" Paging_OfText="de" 
                    Paging_PageSizeText="Registros por pagina" Paging_PagesText="Paginas:" 
                    Paging_RecordsText="Registros:" RemoveLink="Quitar" SaveAllLink="Guardar todo" 
                    SaveLink="Guardar" UpdateLink="Actualizar" />
                <Templates>
                    <cc1:GridTemplate runat="server" ID="TemplateHeaderCodigoOrden">
                        <Template>                            
                            <div id="divHeaderFlyout1" onclick="asignarColumnaSeleccionada('CODIGO_ORDEN'); <%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout1'); <%=Flyout1.getClientID()%>.Open();">Código<br />orden</div>
                        </Template>
                    </cc1:GridTemplate>                            
                    <cc1:GridTemplate runat="server" ID="TemplateHeaderTipoOT">                        
                        <Template>
                            <div id="divHeaderFlyout2" onclick="asignarColumnaSeleccionada('TIPO_OT');<%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout2'); <%=Flyout1.getClientID()%>.Open();">Tipo OT</div>
                        </Template>
                    </cc1:GridTemplate>                                                    
                    <cc1:GridTemplate runat="server" ID="TemplateHeaderEstado">                        
                        <Template>
                            <div id="divHeaderFlyout3" onclick="asignarColumnaSeleccionada('ESTADO'); <%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout3'); <%=Flyout1.getClientID()%>.Open();">Estado</div>
                        </Template>
                    </cc1:GridTemplate>                                                                            
                    <cc1:GridTemplate runat="server" ID="TemplateHeaderNombreServicio">
                        <Template>
                            <div id="divHeaderFlyout4" onclick="asignarColumnaSeleccionada('NOMBRE_SERVICIO'); <%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout4'); <%=Flyout1.getClientID()%>.Open();">Nombre<br />servicio</div>
                        </Template>
                    </cc1:GridTemplate>                                                                                                    
                    <cc1:GridTemplate runat="server" ID="TemplateHeaderCPA">
                        <Template>
                            <div id="divHeaderFlyout5" onclick="asignarColumnaSeleccionada('CPA'); <%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout5');  <%=Flyout1.getClientID()%>.Open();">CPA</div>
                        </Template>
                    </cc1:GridTemplate>                        
                    <cc1:GridTemplate runat="server" ID="TemplateHeaderFecha">
                        <Template>
                            <div id="divHeaderFlyout5" onclick="asignarColumnaSeleccionada('FECHA'); <%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout5');  <%=Flyout1.getClientID()%>.Open();">Fecha</div>
                        </Template>
                    </cc1:GridTemplate>                        
                    <cc1:GridTemplate runat="server" ID="TemplateHeaderVerOT">
                        <Template>
                            <div>Ver OT</div>
                        </Template>
                    </cc1:GridTemplate>  
                    <cc1:GridTemplate runat="server" ID="TemplateItemVerOT">
                        <Template>                                
                            <asp:HyperLink ID="lnkVerOT" runat="server"><img src="../images/document.jpg" alt="Ver OT" border="0" /></asp:HyperLink>
                        </Template>
                    </cc1:GridTemplate>                                                
                    <cc1:GridTemplate runat="server" ID="TemplateHeaderCargarActa">
                        <Template>
                            <div>Cargar<br />acta</div>
                        </Template>
                    </cc1:GridTemplate>  
                    <cc1:GridTemplate runat="server" ID="TemplateItemCargarActa">
                        <Template>                                
                            <asp:HyperLink ID="lnkCargarActa" runat="server"><img src="../images/cargarActa.jpg" alt="Subir acta" border="0" /></asp:HyperLink>
                        </Template>
                    </cc1:GridTemplate>                                                
                                                                                                                  
                </Templates>

            </cc1:Grid>
        
        
        </td>
        </tr>
        
        </table>
        
        
       
    </div>
    
<obout:Flyout runat="server" ID="Flyout1" OpenEvent="NONE" CloseEvent="NONE" Position="BOTTOM_RIGHT">
    <table background="../images/fondoFlyout.jpg" style="border: 1px solid Gray; background-repeat:repeat; z-index:100; ">
        <tr>
            <td align="right">
                <img src="../images/close.jpg" border="0" alt="Cerrar filtros" onclick="<%=Flyout1.getClientID()%>.Close();" />
            </td>
        </tr>
        <tr>
            <td align="left">
                <asp:LinkButton ID="lnkAscendente" runat="server" onclick="lnkAscendente_Click">Ascendente</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td align="left">
                <asp:LinkButton ID="lnkDescendente" runat="server" onclick="lnkDescendente_Click">Descendente</asp:LinkButton>
            </td>
        </tr>        
        <tr>
            <td align="left">                
                Contiene: <asp:TextBox ID="txtContiene" runat="server" Width="90px"></asp:TextBox>
                <asp:ImageButton ID="btnBuscarGrilla" runat="server" ImageUrl="../images/view.gif" onclick="btnBuscarGrilla_Click" />
            </td>
        </tr>                
        <tr>
            <td align="left">
                <asp:LinkButton ID="lnkSinFiltro" runat="server" onclick="lnkSinFiltro_Click">Sin filtro</asp:LinkButton>
            </td>
        </tr>        
        
    </table>
</obout:Flyout>			    
    
    </form>
</body>
</html>
